import React from "react";
import { Card } from "antd";

const DemoDetail = (props: any) => {
  const { title, body } = props.location.state;
  return (
    <div>
      <Card title={title} style={{ width: "100%" }}>
        <p>{body}</p>
      </Card>
    </div>
  );
};
export default DemoDetail;
